package d2_exception;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Exceptiontest {
    public static void main(String[] args) {
        try {
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            Date date = sdf.parse("2028");
            System.out.println(date);
        } catch (ParseException e) {
            throw new RuntimeException(e);
        }

    }
}
